#ifndef VIEWMAIN_H
#define VIEWMAIN_H

#include <QObject>
#include <ncurses.h>

#define ENTER 10
#define ESCAPE 27

class MainView
{

public:
    MainView();

    void drawMenu(int startLine, int startCol);
    void delete_menu(WINDOW **items,int count);
    int scroll_menu(WINDOW **items,int count);
    void playMusic(const QString& url);

    void show();

private:
    bool listen();
    void run(int menuId);
    WINDOW *m_window;
    int m_cols;
    int m_lines;
    WINDOW **m_menuItems;

};

#endif // VIEWMAIN_H
